package com.jfeat.am.module.wegou.services.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2018-02-27
 */
@TableName("t_user_identity")
public class UserIdentity extends Model<UserIdentity> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 外键/用户id
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 身份
     */
	private String identity;
    /**
     * 备注
     */
	private String note;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public static final String ID = "id";

	public static final String USER_ID = "user_id";

	public static final String IDENTITY = "identity";

	public static final String NOTE = "note";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "UserIdentity{" +
			"id=" + id +
			", userId=" + userId +
			", identity=" + identity +
			", note=" + note +
			"}";
	}
}
